package org.softmed.neodatis.util.id.generator;

public class SequentialGenerator implements IDGenerator {
	long id = 0;

	public SequentialGenerator() {

	}

	public SequentialGenerator(long startIndex) {
		this.id = startIndex;
	}

	@Override
	public synchronized Object generate(Object object) {
		++id;
		return id;
	}
}
